#ifndef SENDDATATO_ST_H
#define SENDDATATO_ST_H


#include <QObject>
#include <QUdpSocket>
#include <QHostAddress>

class UdpSender : public QObject{
    Q_OBJECT
public:
    explicit UdpSender(QObject *parent = nullptr);
    ~UdpSender();
public slots:
    void sendData(const QByteArray &data, const QHostAddress &remoteAddr, quint16 remotePort);
    

signals:
    void errorOccurred(const QString &err);

private:
    QUdpSocket *udpSocket;
};
#endif // SENDDATATO_ST_H